<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>收益中心 - 收益详情</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f6f7;
            color: #18191c;
            padding: 16px;
            line-height: 1.5;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #e3e5e7;
        }
        
        h1 {
            font-size: 20px;
            font-weight: 500;
            color: #18191c;
        }
        
        .card {
            background: #fff;
            border-radius: 4px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        .card-title {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 16px;
            color: #18191c;
        }
        
        .date-notice {
            font-size: 13px;
            color: #9499a0;
            margin-bottom: 16px;
            padding: 8px 12px;
            background-color: #f5f7fa;
            border-radius: 4px;
        }
        
        .overview-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .overview-item {
            background: #f5f7fa;
            border-radius: 4px;
            padding: 16px;
            text-align: center;
        }
        
        .overview-item .value {
            font-size: 24px;
            font-weight: 500;
            margin: 8px 0;
            color: #18191c;
        }
        
        .overview-item .label {
            color: #9499a0;
            font-size: 13px;
        }
        
        .chart-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        
        .chart-card {
            background: #fff;
            border-radius: 4px;
            padding: 16px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        
        .time-tabs {
            display: flex;
            margin-bottom: 16px;
            background: #f5f7fa;
            border-radius: 4px;
            padding: 2px;
        }
        
        .time-tab {
            flex: 1;
            text-align: center;
            padding: 6px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 13px;
            color: #61666d;
        }
        
        .time-tab.active {
            background: #fff;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            color: #18191c;
            font-weight: 500;
        }
        
        .distribution-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        .distribution-item {
            background: #f5f7fa;
            border-radius: 4px;
            padding: 12px;
        }
        
        .distribution-item .label {
            font-size: 13px;
            color: #61666d;
            margin-bottom: 4px;
        }
        
        .distribution-item .value {
            font-size: 16px;
            font-weight: 500;
            color: #18191c;
        }
        
        .chart-placeholder {
            height: 200px;
            background-color: #f5f7fa;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9499a0;
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
            .chart-container {
                grid-template-columns: 1fr;
            }
            
            .overview-grid {
                grid-template-columns: 1fr;
            }
            
            .distribution-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>收益中心 > 收益详情</h1>
        </header>
        
        <div class="card">
            <div class="card-title">收益总览</div>
            
            <div class="date-notice">
                9月3日创作激励待更新，悬赏带货待更新
            </div>
            
            <div class="overview-grid">
                <div class="overview-item">
                    <div class="label">9月3日收益</div>
                    <div class="value">0.00</div>
                </div>
                
                <div class="overview-item">
                    <div class="label">近30天收益</div>
                    <div class="value">0.01</div>
                </div>
                
                <div class="overview-item">
                    <div class="label">近一年收益</div>
                    <div class="value">0.29</div>
                </div>
            </div>
        </div>
        
        <div class="chart-container">
            <div class="chart-card">
                <div class="card-title">收益趋势</div>
                <div class="chart-placeholder">
                    收益趋势图表区域
                </div>
            </div>
            
            <div class="chart-card">
                <div class="card-title">收益分布</div>
                
                <div class="time-tabs">
                    <div class="time-tab active">近7天</div>
                    <div class="time-tab">近15天</div>
                    <div class="time-tab">近30天</div>
                </div>
                
                <div class="distribution-grid">
                    <div class="distribution-item">
                        <div class="label">创作激励</div>
                        <div class="value">0.00</div>
                    </div>
                    
                    <div class="distribution-item">
                        <div class="label">悬赏带货</div>
                        <div class="value">0.00</div>
                    </div>
                    
                    <div class="distribution-item">
                        <div class="label">广告合伙人</div>
                        <div class="value">0.00</div>
                    </div>
                    
                    <div class="distribution-item">
                        <div class="label">包月充电</div>
                        <div class="value">0.00</div>
                    </div>
                    
                    <div class="distribution-item">
                        <div class="label">自定义充电</div>
                        <div class="value">0.00</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 时间选项卡切换
        const timeTabs = document.querySelectorAll('.time-tab');
        timeTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                timeTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
            });
        });
    </script>
</body>
</html>